export default function (...args) {
  const target = args[0];
  for (let i = 1; i < args.length; i += 1) {
    const source = args[i] || {};
    const keys = Object.keys(source);
    for (let k = 0; k < keys.length; k += 1) {
      const value = source[keys[k]];
      if (value !== undefined) {
        target[keys[k]] = value;
      }
    }
  }
  return target;
}
